<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <form action="xxx.php" method="get" name="name1">
        用户名: <input type="text" name="username" value="请输入用户名" maxlength="9"><br>
        密码：<input type="password" name="pwd" maxlength="18"><br>
        <!-- radio 单选按钮，可多选一 -->
        性别：男<input type="radio" name="sex" value="男" checked="checked">
        女 <input type="radio" name="sex" value="女"><br>
        爱好：吃饭 <input type="checkbox"> 睡觉 <input type="checkbox"> <br>
        <input type="submit" value="免费注册">
        <input type="reset" value="重置">
        <input type="button" value="获取验证码"><br>
        <input type="file">
    </form>
</body>

</html>